package com.example.movie.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户表，用于存储用户的基本信息
 * @TableName user
 */
@TableName(value ="user")
@Data
public class User implements Serializable {
    /**
     * 用户id
     */
    @TableId(value = "u_id", type = IdType.AUTO)
    private Long uId;

    /**
     * 用户名称
     */
    @TableField(value = "u_name")
    private String name;

    /**
     * 用户账号
     */
    @TableField(value = "u_account")
    private String account;

    /**
     * 用户密码
     */
    @TableField(value = "u_password")
    private String password;

    /**
     * 用户身份
     */
    @TableField(value = "u_role")
    private String role;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}